﻿@using Controllers
@{
    var func=new MyFunc();
}
<!DOCTYPE HTML>
<html lang="en-US">
<head>
@Html.Partial("_top")
</head>
<body>
    <div id="wrapper">		
@Html.Partial("_header.mobile")
		<div id="banner">
	@{var banner=func.GetAdList("mbanner");}
        <div id="slideBox" class="slideBox">
            <div class="bd">
                <div class="tempWrap" >
                    <ul >
						<ul id="slides">
			@for(var i=0;i<banner.Count;i++){
				<li >
					<a href="#" target="_blank"><img src="@banner[i].src" width="100%" alt="" height="160"/></a>
				</li>		
			}
                    </ul>
                </div>
            </div>
            <div class="hd">
                <ul>@for(var i=0;i<banner.Count;i++){<li class="">@i</li>}</ul>
            </div>
        </div>
        <script type="text/javascript">
            TouchSlide({
                slideCell: "#slideBox",
                titCell: ".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
                mainCell: ".bd ul",
                effect: "leftLoop",
                autoPage: true,//自动分页
                autoPlay: true, //自动播放
                interTime: 3000
            });
        </script>
		</div>

	   <div id="mainbody">
            <div id="hproduct1" class="tabBox">                
                <div class="lmTitle"><a href="/list/1"><span>+</span><h2>产品</h2></a></div>
				
<div class="lb">
 @{var pclass=func.GetCList(0,1);}
			@for(var i=0;i<pclass.Count;i++){	
				var citem=pclass[i];
				var curl="/list/"+citem.ID;	
    <div><a href="@curl" title="@citem.title">@citem.title</a></div>
		 }	
</div>

				

                <ul class="listImg">
                    		@{var niceproducts=func.GetList(8,1,"n");}
                    @for(var i=0;i<niceproducts.Count;i++){	
                      var item=niceproducts[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
                        <li>
                            <div>
								<a href="@url" title="@item.title" traget="@target">
                                <img src="@item.pic" alt="@item.title">
								
                                <strong>@item.title</strong>
                               <span>查看更多</span></a>
							</div>                            
                        </li>
                    }   
						<div class="clear"></div>
                </ul>
                <div class="con">
                    <ul>
                    </ul>
                </div>
            </div>
			

            
            <div id="news" class="tabBox">
                <div class="lmTitle">
                     <a href="/list/2"><h2>新闻</h2><span>+</span></a>
                </div>
                <div class="tempWrap" >
                    <div class="bd" >
                        <ul class="listTxt" >
						@{var news=func.GetList(8,2);}
                    @for(var i=0;i<news.Count;i++){	
                      var item=news[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";  
								<li><a href="@url" title="@item.title" traget="@target">@MyFunc.Length(item.title,18)</a><br/><span>@item.addtime.ToString("yyyy-MM-dd")</span></li>
							}
                        </ul>
                    </div>
                </div>
            </div>
			
            <div id="pics" class="tabBox">
                <div class="lmTitle">
                     <a href="/list/10"><h2>公司图库</h2><span>+</span></a>
                </div>
                <div class="tempWrap" >
                    <div class="bd" >
                        <ul class="listpic" >
							@{var pics=func.GetList(8,10);}
                    @for(var i=0;i<pics.Count;i++){	
                      var item=pics[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank"; 
							<li>
								<div class="img"><a href="@url" title="@item.title" traget="@target"><img src="@item.pic" alt="@item.title"></a></div>
								<div class="tit"><a href="@url" title="@item.title" traget="@target">@item.title</a></div>
							</li>
							}
						<div class="clear"></div>
                        </ul>
                    </div>
                </div>
            </div>
		   			
			
            <div id="about" class="tabBox">
				<div class="lmTitle">
                     <a href="/article/1"><h2>关于我们</h2><span>+</span></a>
                </div>
                  <div class="bd" >
					@Html.Raw(ViewBag.model.content)
				</div>
				
            </div>
	
			<div id="mcopyright">@Html.Raw(ViewBag.model.copyright)</div>
        <div class="gotop"><a href="#top">返回顶部</a></div>
        <div class="space"></div>
			
        </div>
</body>
</html>